﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TinyPMS_Jerusalem.ViewModels.UserInfoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	填写用户信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

	<h2>填写用户信息</h2>

	<% using (Html.BeginForm()) {%>
		<%= Html.ValidationSummary(true) %>
		
		<fieldset>
			<legend>Fields</legend>
			
			<div class="editor-label">
				<%= Html.LabelFor(model => model.Name) %>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(model => model.Name) %>
				<%= Html.ValidationMessageFor(model => model.Name) %>
			</div>
			
			<div class="editor-label">
				<%= Html.LabelFor(model => model.Gender) %>
			</div>
			<div class="editor-field">
				<%= Html.DropDownList("Gender") %>
				<%= Html.ValidationMessageFor(model => model.Gender) %>
			</div>
						
			<div class="editor-label">
				<%= Html.LabelFor(model => model.Phone) %>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(model => model.Phone) %>
				<%= Html.ValidationMessageFor(model => model.Phone) %>
			</div>
			
			<div class="editor-label">
				<%= Html.LabelFor(model => model.Address) %>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(model => model.Address) %>
				<%= Html.ValidationMessageFor(model => model.Address) %>
			</div>

			<p>
				<input type="submit" value="保存" />
			</p>
		</fieldset>

	<% } %>

	<div>
		<%= Html.ActionLink("返回列表", "Index") %>
	</div>

</asp:Content>

